Carbon


PBWriteForkSync

Header: Files.h Carbon status: Supported

Writes data to an open fork.

OSErr PBWriteForkSync (
    FSForkIOParam *paramBlock
);
paramBlock

A pointer to a parameter block

function result

A result code.

DISCUSSION

The relevant fields of the parameter block are:

Data is written starting at the position specified by positionMode and positionOffset. The call will attempt to write requestCount bytes from the buffer pointed at by the buffer parameter.

The fork’s current position is set to point immediately after the last byte written (that is, the initial position plus actualCount).

You can open the fork using the FSOpenFork call.

AVAILABILITY

Supported in Carbon. Available in Mac OS 9, and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)